#1 match case语句
data1 = (71, 89, 55)
for item1 in data1:
    match item1:
        case 89:
            print(item1, '优秀')
        case 71:
            print(item1, '及格')
        case _:
            print(item1, "未知")

#2 字典合并
d1 = {'a': 10, 'b': 20}
d2 = {'c': 30, 'd': 40}
d3 = d1 | d2
print(d3)